<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonContextCategory类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_context_category.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_s_a_ribbon_context_category-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonContextCategory类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>管理上下文标签的类  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_context_category_8h_source.html">SARibbonContextCategory.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonContextCategory 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_context_category.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_context_category_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The SARibbonContextCategoryPrivate class  <a href="class_s_a_ribbon_context_category_1_1_private_data.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="signals" name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:a895696894ce68132cd7ddc7a760ba21f" id="r_a895696894ce68132cd7ddc7a760ba21f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a895696894ce68132cd7ddc7a760ba21f">categoryPageAdded</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="memdesc:a895696894ce68132cd7ddc7a760ba21f"><td class="mdescLeft">&#160;</td><td class="mdescRight">标签加入上下文  <br /></td></tr>
<tr class="separator:a895696894ce68132cd7ddc7a760ba21f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12a30000371161bf52cbe08ed5632a1d" id="r_a12a30000371161bf52cbe08ed5632a1d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a12a30000371161bf52cbe08ed5632a1d">categoryPageRemoved</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="memdesc:a12a30000371161bf52cbe08ed5632a1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">标签从上下文移除  <br /></td></tr>
<tr class="separator:a12a30000371161bf52cbe08ed5632a1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5cdeeeffa4b61d6bb27184535945710" id="r_af5cdeeeffa4b61d6bb27184535945710"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af5cdeeeffa4b61d6bb27184535945710">contextTitleChanged</a> (const QString &amp;title)</td></tr>
<tr class="memdesc:af5cdeeeffa4b61d6bb27184535945710"><td class="mdescLeft">&#160;</td><td class="mdescRight">上下文的标题发生改变  <br /></td></tr>
<tr class="separator:af5cdeeeffa4b61d6bb27184535945710"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61adf6bcea5cdeaef325aa60b2c28eb4" id="r_a61adf6bcea5cdeaef325aa60b2c28eb4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a61adf6bcea5cdeaef325aa60b2c28eb4">categoryTitleChanged</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category, const QString &amp;title)</td></tr>
<tr class="memdesc:a61adf6bcea5cdeaef325aa60b2c28eb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">上下文标签维护的标签页名字发生了改变  <br /></td></tr>
<tr class="separator:a61adf6bcea5cdeaef325aa60b2c28eb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a95fe7c7fa5c787ddfebcf1f681bc7076" id="r_a95fe7c7fa5c787ddfebcf1f681bc7076"><td class="memItemLeft" align="right" valign="top"><a id="a95fe7c7fa5c787ddfebcf1f681bc7076" name="a95fe7c7fa5c787ddfebcf1f681bc7076"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonContextCategory</b> (QWidget *parent=nullptr)</td></tr>
<tr class="separator:a95fe7c7fa5c787ddfebcf1f681bc7076"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4a26f2232831d9770ca698e86509bcc" id="r_ad4a26f2232831d9770ca698e86509bcc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad4a26f2232831d9770ca698e86509bcc">addCategoryPage</a> (const QString &amp;title)</td></tr>
<tr class="memdesc:ad4a26f2232831d9770ca698e86509bcc"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加标签  <br /></td></tr>
<tr class="separator:ad4a26f2232831d9770ca698e86509bcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a796bd2966214ef7704e9f9b0814b44ac" id="r_a796bd2966214ef7704e9f9b0814b44ac"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a796bd2966214ef7704e9f9b0814b44ac">addCategoryPage</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="memdesc:a796bd2966214ef7704e9f9b0814b44ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加标签  <br /></td></tr>
<tr class="separator:a796bd2966214ef7704e9f9b0814b44ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa484a3c5809b805b37bef524b3f269a8" id="r_aa484a3c5809b805b37bef524b3f269a8"><td class="memItemLeft" align="right" valign="top"><a id="aa484a3c5809b805b37bef524b3f269a8" name="aa484a3c5809b805b37bef524b3f269a8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>categoryCount</b> () const</td></tr>
<tr class="separator:aa484a3c5809b805b37bef524b3f269a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b474ddd17e9ae059035d0e07332f3a4" id="r_a2b474ddd17e9ae059035d0e07332f3a4"><td class="memItemLeft" align="right" valign="top"><a id="a2b474ddd17e9ae059035d0e07332f3a4" name="a2b474ddd17e9ae059035d0e07332f3a4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setId</b> (const QVariant &amp;id)</td></tr>
<tr class="separator:a2b474ddd17e9ae059035d0e07332f3a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab33ce60de984b8bc14a2882ac76bc314" id="r_ab33ce60de984b8bc14a2882ac76bc314"><td class="memItemLeft" align="right" valign="top"><a id="ab33ce60de984b8bc14a2882ac76bc314" name="ab33ce60de984b8bc14a2882ac76bc314"></a>
QVariant&#160;</td><td class="memItemRight" valign="bottom"><b>id</b> () const</td></tr>
<tr class="separator:ab33ce60de984b8bc14a2882ac76bc314"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e1ff742b43de18ef1bd5fe3baa2af3b" id="r_a3e1ff742b43de18ef1bd5fe3baa2af3b"><td class="memItemLeft" align="right" valign="top"><a id="a3e1ff742b43de18ef1bd5fe3baa2af3b" name="a3e1ff742b43de18ef1bd5fe3baa2af3b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setContextColor</b> (const QColor color)</td></tr>
<tr class="separator:a3e1ff742b43de18ef1bd5fe3baa2af3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a906cb024d30095726f3efbcae3ec6176" id="r_a906cb024d30095726f3efbcae3ec6176"><td class="memItemLeft" align="right" valign="top"><a id="a906cb024d30095726f3efbcae3ec6176" name="a906cb024d30095726f3efbcae3ec6176"></a>
QColor&#160;</td><td class="memItemRight" valign="bottom"><b>contextColor</b> () const</td></tr>
<tr class="separator:a906cb024d30095726f3efbcae3ec6176"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94e601319403987c0fb16a8dea11bca0" id="r_a94e601319403987c0fb16a8dea11bca0"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a94e601319403987c0fb16a8dea11bca0">contextTitle</a> () const</td></tr>
<tr class="memdesc:a94e601319403987c0fb16a8dea11bca0"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取上下文标签的标题  <br /></td></tr>
<tr class="separator:a94e601319403987c0fb16a8dea11bca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a094dbb612d8e9187c04470b2763cf1d7" id="r_a094dbb612d8e9187c04470b2763cf1d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a094dbb612d8e9187c04470b2763cf1d7">setContextTitle</a> (const QString &amp;<a class="el" href="#a94e601319403987c0fb16a8dea11bca0">contextTitle</a>)</td></tr>
<tr class="memdesc:a094dbb612d8e9187c04470b2763cf1d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置上下文标签的标题，标题仅在office模式下显示 SARibbonBar::RibbonStyle  <br /></td></tr>
<tr class="separator:a094dbb612d8e9187c04470b2763cf1d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5663346ddb26896321a1d97939a8a753" id="r_a5663346ddb26896321a1d97939a8a753"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5663346ddb26896321a1d97939a8a753">categoryPage</a> (int index)</td></tr>
<tr class="memdesc:a5663346ddb26896321a1d97939a8a753"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取对应的tab页  <br /></td></tr>
<tr class="separator:a5663346ddb26896321a1d97939a8a753"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96a0339b5f4f4d4a08ba11218ffc56a6" id="r_a96a0339b5f4f4d4a08ba11218ffc56a6"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a96a0339b5f4f4d4a08ba11218ffc56a6">categoryList</a> () const</td></tr>
<tr class="memdesc:a96a0339b5f4f4d4a08ba11218ffc56a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取所有的SARibbonCategory*  <br /></td></tr>
<tr class="separator:a96a0339b5f4f4d4a08ba11218ffc56a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa22c350fbdee888ee56ab747785c823e" id="r_aa22c350fbdee888ee56ab747785c823e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa22c350fbdee888ee56ab747785c823e">takeCategory</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="memdesc:aa22c350fbdee888ee56ab747785c823e"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除这个category，这时SARibbonContextCategory不再管理这个category  <br /></td></tr>
<tr class="separator:aa22c350fbdee888ee56ab747785c823e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17eac037247f9ad652cbd250dce11b7e" id="r_a17eac037247f9ad652cbd250dce11b7e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a17eac037247f9ad652cbd250dce11b7e">isHaveCategory</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category) const</td></tr>
<tr class="memdesc:a17eac037247f9ad652cbd250dce11b7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断上下文是否维护了此SARibbonCategory  <br /></td></tr>
<tr class="separator:a17eac037247f9ad652cbd250dce11b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a4444e932b326c5aa606c3e0df262300e" id="r_a4444e932b326c5aa606c3e0df262300e"><td class="memItemLeft" align="right" valign="top"><a id="a4444e932b326c5aa606c3e0df262300e" name="a4444e932b326c5aa606c3e0df262300e"></a>
QWidget *&#160;</td><td class="memItemRight" valign="bottom"><b>parentWidget</b> () const</td></tr>
<tr class="separator:a4444e932b326c5aa606c3e0df262300e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4253f1ac130c6f4dd5b3acacdb001993" id="r_a4253f1ac130c6f4dd5b3acacdb001993"><td class="memItemLeft" align="right" valign="top"><a id="a4253f1ac130c6f4dd5b3acacdb001993" name="a4253f1ac130c6f4dd5b3acacdb001993"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>eventFilter</b> (QObject *watched, QEvent *e) override</td></tr>
<tr class="separator:a4253f1ac130c6f4dd5b3acacdb001993"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>管理上下文标签的类 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ad4a26f2232831d9770ca698e86509bcc" name="ad4a26f2232831d9770ca698e86509bcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4a26f2232831d9770ca698e86509bcc">&#9670;&#160;</a></span>addCategoryPage() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * SARibbonContextCategory::addCategoryPage </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加标签 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>标签名字 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a796bd2966214ef7704e9f9b0814b44ac" name="a796bd2966214ef7704e9f9b0814b44ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a796bd2966214ef7704e9f9b0814b44ac">&#9670;&#160;</a></span>addCategoryPage() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonContextCategory::addCategoryPage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加标签 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">page</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a96a0339b5f4f4d4a08ba11218ffc56a6" name="a96a0339b5f4f4d4a08ba11218ffc56a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96a0339b5f4f4d4a08ba11218ffc56a6">&#9670;&#160;</a></span>categoryList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * &gt; SARibbonContextCategory::categoryList </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取所有的SARibbonCategory* </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a5663346ddb26896321a1d97939a8a753" name="a5663346ddb26896321a1d97939a8a753"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5663346ddb26896321a1d97939a8a753">&#9670;&#160;</a></span>categoryPage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * SARibbonContextCategory::categoryPage </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取对应的tab页 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a895696894ce68132cd7ddc7a760ba21f" name="a895696894ce68132cd7ddc7a760ba21f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a895696894ce68132cd7ddc7a760ba21f">&#9670;&#160;</a></span>categoryPageAdded</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonContextCategory::categoryPageAdded </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>标签加入上下文 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a12a30000371161bf52cbe08ed5632a1d" name="a12a30000371161bf52cbe08ed5632a1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12a30000371161bf52cbe08ed5632a1d">&#9670;&#160;</a></span>categoryPageRemoved</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonContextCategory::categoryPageRemoved </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>标签从上下文移除 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a61adf6bcea5cdeaef325aa60b2c28eb4" name="a61adf6bcea5cdeaef325aa60b2c28eb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61adf6bcea5cdeaef325aa60b2c28eb4">&#9670;&#160;</a></span>categoryTitleChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonContextCategory::categoryTitleChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>上下文标签维护的标签页名字发生了改变 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td>发生改变的上下文标签页 </td></tr>
    <tr><td class="paramname">title</td><td>新名字 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a94e601319403987c0fb16a8dea11bca0" name="a94e601319403987c0fb16a8dea11bca0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94e601319403987c0fb16a8dea11bca0">&#9670;&#160;</a></span>contextTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString SARibbonContextCategory::contextTitle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取上下文标签的标题 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="af5cdeeeffa4b61d6bb27184535945710" name="af5cdeeeffa4b61d6bb27184535945710"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5cdeeeffa4b61d6bb27184535945710">&#9670;&#160;</a></span>contextTitleChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonContextCategory::contextTitleChanged </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>上下文的标题发生改变 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a17eac037247f9ad652cbd250dce11b7e" name="a17eac037247f9ad652cbd250dce11b7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17eac037247f9ad652cbd250dce11b7e">&#9670;&#160;</a></span>isHaveCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonContextCategory::isHaveCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断上下文是否维护了此SARibbonCategory </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a094dbb612d8e9187c04470b2763cf1d7" name="a094dbb612d8e9187c04470b2763cf1d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a094dbb612d8e9187c04470b2763cf1d7">&#9670;&#160;</a></span>setContextTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonContextCategory::setContextTitle </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>contextTitle</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置上下文标签的标题，标题仅在office模式下显示 SARibbonBar::RibbonStyle </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">contextTitle</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>此函数会触发信号</dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="#af5cdeeeffa4b61d6bb27184535945710" title="上下文的标题发生改变">contextTitleChanged</a> </dd></dl>

</div>
</div>
<a id="aa22c350fbdee888ee56ab747785c823e" name="aa22c350fbdee888ee56ab747785c823e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa22c350fbdee888ee56ab747785c823e">&#9670;&#160;</a></span>takeCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonContextCategory::takeCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移除这个category，这时SARibbonContextCategory不再管理这个category </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功移除返回true </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_context_category_8h_source.html">SARibbonContextCategory.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonContextCategory.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
